﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Back.Master" AutoEventWireup="true"
    CodeBehind="CardInfo.aspx.cs" Inherits="SAWeb.Web.CardInfo" %>


<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
    <title>银行卡（收支方式）管理
    </title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">
    <div id="showtreeselect">
    </div>
    <div class="MainNav">
        <div class="Left">
            <a href="/Admin/Main.aspx" class="home">系统首页</a>
        </div>
        <div class="Right">
            <asp:TextBox ID="txtKey" runat="server" onfocus="OnFocusFun(this,'标题搜索...')" onblur="OnBlurFun(this,'标题搜索...')"></asp:TextBox>
            <asp:LinkButton ID="btnSearch" runat="server" class="SearchBtn" CommandName="search" OnCommand="FormEvent"><b>搜 索</b></asp:LinkButton>
        </div>
    </div>
    <sap:crudform runat="server" id="pnlDetail" title="银行卡（收支方式）" isshowaddbutton="false" ispopwindow="false" buttonclass="NorBtn" IsShowSaveButton="false">
    	<asp:HiddenField runat="server" ID="hfCardId" />
    <div class="MainTopSet">
        <div class="Left">
              <asp:LinkButton ID="lbtnSave" runat="server" class="needCheck NorBtn" OnClientClick="return btnSave()" CommandName="save" OnCommand="FormEvent"><b>保 存</b></asp:LinkButton>
              <asp:LinkButton ID="lbtnCancel" runat="server" class="NorBtn" CommandName="cancel" OnCommand="FormEvent"><b>返 回</b></asp:LinkButton>
        </div>
    </div>
        <div class="EditRight">
	    <table class="EditTab" cellpadding="0" cellspacing="0" border="0" >
			
			<tr>
                <th>卡名称 :
                </th>
				<td>
					<asp:TextBox runat="server" ID="txtName" CssClass="binput validate[required]  "></asp:TextBox>
				</td>
			</tr>
			

			<tr>
                <th>所属银行 :
                </th>
				<td>
					<asp:TextBox runat="server" ID="txtBank" CssClass="binput validate[required]  "></asp:TextBox>
				</td>
			</tr>
			

			<tr>
                <th>卡号 :
                </th>
				<td>
					<asp:TextBox runat="server" ID="txtNum" CssClass="binput validate[required]  "></asp:TextBox>
				</td>
			</tr>
			

			<tr>
                <th>余额 :
                </th>
				<td>
					<asp:TextBox runat="server" ID="txtMoney" CssClass="binput validate[required]  validate[required]"></asp:TextBox>
				</td>
			</tr>
			

			<tr>
                <th>每月消费记录 :
                </th>
				<td>
					<asp:TextBox runat="server" ID="txtRecord" CssClass="binput validate[required]  "></asp:TextBox>
				</td>
			</tr>
			

			<tr>
                <th>卡类型 :
                </th>
				<td>
					<asp:DropDownList runat="server" ID="ddlType" CssClass="binput validate[required]  validate[required]"></asp:DropDownList>
				</td>
			</tr>
			

			<tr>
                <th>用户 :
                </th>
				<td>
					<asp:TextBox runat="server" ID="txtUsersId" CssClass="binput validate[required]  validate[required] integer"></asp:TextBox>
				</td>
			</tr>
			

		</table>
        </div>
          <div class="MainBottomSet">
        <div class="Left">
        </div>
    </div>
	</sap:crudform>
    <asp:Panel runat="server" ID="pnlList">
        <div class="MainTopSet">
            <div class="Left">
                <asp:LinkButton runat="server" ID="lbtnDelete" CssClass="NorBtn batchDelete" OnClientClick="return btnBatchDel()"
                    CommandName="batchdel" OnCommand="FormEvent"><b>批量删除</b></asp:LinkButton>
                <asp:LinkButton runat="server" ID="lbtnAdd" CssClass="NorBtn" CommandName="add" OnCommand="FormEvent"><b>新&nbsp;&nbsp;增</b></asp:LinkButton>
            </div>

        </div>
        <table class="ListTab" width="100%" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th style="width: 20px">
                        <input type="checkbox" id="ckSelectAll" /></th>
                    <th style="width: 40px">序号</th>
                    
                        <th>卡名称</th>
                    

                        <th>所属银行</th>
                    

                        <th>卡号</th>
                    

                        <th>余额</th>
                    

                        <th>每月消费记录</th>
                    

                        <th>卡类型</th>
                    

                        <th>用户</th>
                    

                        <th style="width: 100px">操作</th>
                </tr>
            </thead>
            <sap:pagedrepeater id="rptList" runat="server" onitemcommand="rptList_Command">
			    <ItemTemplate>
                            <tr>
                                <td> <input type="checkbox" class="ckSelect" runat="server" id="ckSelect" value="<%# Page.Entity<Card>(s=>s.CardId) %>" /></td>
                                <td>
                                    <%# (rptList.PageIndex - 1) * rptList.PageSize + Container.ItemIndex + 1%>
                                </td>
                                 
                                <td>
                                    <%# Page.Entity<Card>(s=>s.Name) %>
                                </td>
                                

                                <td>
                                    <%# Page.Entity<Card>(s=>s.Bank) %>
                                </td>
                                

                                <td>
                                    <%# Page.Entity<Card>(s=>s.Num) %>
                                </td>
                                

                                <td>
                                    <%# Page.Entity<Card>(s=>s.Money) %>
                                </td>
                                

                                <td>
                                    <%# Page.Entity<Card>(s=>s.Record) %>
                                </td>
                                

                                <td>
                                    <%# Page.Entity<Card>(s=>s.Type) %>
                                </td>
                                

                                <td>
                                    <%# Page.Entity<Card>(s=>s.UsersId) %>
                                </td>
                                

                                <td>
                                    <asp:LinkButton runat="server" ID="btnEdit" Text="编辑" CssClass=" " CommandName="edit"
                                        CommandArgument='<%# Eval("CardId") %>'></asp:LinkButton>
                                    <asp:LinkButton runat="server" ID="btnDelete" Text="删除" CssClass="btnDelete " CommandName="delete"
                                        CommandArgument='<%# Eval("CardId") %>' ></asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
              <FooterTemplate>
        </table> <div class="MainBottomSet">
        <div class="Right">
                </FooterTemplate>
		</sap:PagedRepeater>  
        </div>
    </div>
    </asp:Panel>
</asp:Content>
